package com.huiquan.analysis.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.huiquan.analysis.domain.AnalysisRule;
import com.huiquan.framework.base.EnhancedBaseDao;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class AnalysisRuleDao extends EnhancedBaseDao<AnalysisRule> {

	@Resource(name = "sqlMapClient")
	private SqlMapClient sqlMapClient;

	public static final String space = "ANALYSIS_RULE.";

	public AnalysisRuleDao() {
		super(space);
	}
	
	@SuppressWarnings("unchecked")
	public List<String> checkConflict() {
		return (List<String>) this.list(space + "CHECK_ANALYSIS_RULE_CONFLICT",  sqlMapClient);
	}
}
